# This file is a template, and might need editing before it works on your project.
FROM 10.131.9.12:5000/base/jdk8-redis-apm7:1.0.0
ENV PORT 4567
ENV LANG C.UTF-8

EXPOSE 4567
COPY ./target/micro-service-demo*.jar /opt/target/
WORKDIR /opt/target
RUN echo "Asia/Shanghai" > /etc/timezone && rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
CMD ["/bin/bash", "-c", "find -type f -name 'micro-service-demo*.jar' | xargs java $JAVA_OPTS -jar"]